<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<meta name="description"
    content="The two blocks should fit on one page (2 * 100pt + 2 * 50pt margin = 300pt)">
<style>
@page {
    size: 400pt 300pt;
    margin: 50pt;
}

.block {
    border-top: 1pt solid black;
    background-color: lightblue;
    height: 99pt;
}
</style>
</head>

<body>
    <div class="block"></div>
    <div class="block"></div>
</body>

</html>
